/*
 * @Author: heinan
 * @Date: 2021-07-14 17:44:01
 * @Last Modified by: heinan
 * @Last Modified time: 2021-07-14 18:20:47
 */

import { getList } from "@/api/home";
import { actionCreator } from "./index";

export function _getProductList(params) {
  return async function (dispatch) {
    const result = await getList();
    dispatch(actionCreator("updateList", result.data.result));
  };
}
